package com.example.reids;

public class RunTest implements Runnable {
	
	private RedisService service;
	private int num;
    public RunTest(RedisService service,int num) {
		this.num = num;
		this.service = service;
	}
    @Override
    public void run() {
        Student s = new Student();
        System.out.println(Thread.currentThread().getName());
        s.setId(""+num);
        s.setName("chhliu");
        s.setGrade("一年级");
        s.setAge("28");
        this.service.set(s);
    }
}
